;进行异或操作
.386
STACK SEGMENT USE16 STACK
      DB 200 DUP(0)
STACK ENDS

DATA SEGMENT USE16
     INPASS  DB 7
             DB ?
             DB 7 DUP(0)
DATA ENDS

CODE SEGMENT USE16
     ASSUME   CS:CODE,DS:DATA,SS:STACK
START:
     MOV    AX  ,   DATA
     MOV    DS  ,   AX
     LEA    DX  ,   INPASS
     MOV    AH  ,   0AH
     INT    21H
     MOV    CX  ,   7
     MOV    SI  ,   2
YIHUO:
     XOR    INPASS+[SI]   ,   'D'
     INC    SI
     DEC    CX
     CMP    CX  ,   0
     JNZ    YIHUO
     LEA    DX  ,   INPASS
     MOV    AH  ,   9
     INT    21H
     MOV    AH  ,   4CH
     INT    21H
CODE ENDS
     END    START
     